package com.zhiteng.entity;

import java.util.Map;

public class Report {
	private Long id;
	private String school_id;// 学校的id
	private String teacher_id;// 老师的id
	private Integer normalNum;// 正常上课数
	private Integer substituteNum;// 代课数
	private Integer petitioner_substituteNum;// 被代课数
	private Integer adjustNum;// 调课数
	private Integer petitioner_adjustNum;// 被调课数

	private Integer LeaveBillNum;// 请假数
	private Integer total_course;// 请假的总课时
	private Map<String, Object> map;//

	public Report() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Report(Long id, String school_id, String teacher_id, Integer normalNum, Integer substituteNum,
			Integer petitioner_substituteNum, Integer adjustNum, Integer petitioner_adjustNum, Integer leaveBillNum,
			Integer total_course, Map<String, Object> map) {
		super();
		this.id = id;
		this.school_id = school_id;
		this.teacher_id = teacher_id;
		this.normalNum = normalNum;
		this.substituteNum = substituteNum;
		this.petitioner_substituteNum = petitioner_substituteNum;
		this.adjustNum = adjustNum;
		this.petitioner_adjustNum = petitioner_adjustNum;
		LeaveBillNum = leaveBillNum;
		this.total_course = total_course;
		this.map = map;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSchool_id() {
		return school_id;
	}

	public void setSchool_id(String school_id) {
		this.school_id = school_id;
	}

	public String getTeacher_id() {
		return teacher_id;
	}

	public void setTeacher_id(String teacher_id) {
		this.teacher_id = teacher_id;
	}

	public Integer getNormalNum() {
		return normalNum;
	}

	public void setNormalNum(Integer normalNum) {
		this.normalNum = normalNum;
	}

	public Integer getSubstituteNum() {
		return substituteNum;
	}

	public void setSubstituteNum(Integer substituteNum) {
		this.substituteNum = substituteNum;
	}

	public Integer getPetitioner_substituteNum() {
		return petitioner_substituteNum;
	}

	public void setPetitioner_substituteNum(Integer petitioner_substituteNum) {
		this.petitioner_substituteNum = petitioner_substituteNum;
	}

	public Integer getAdjustNum() {
		return adjustNum;
	}

	public void setAdjustNum(Integer adjustNum) {
		this.adjustNum = adjustNum;
	}

	public Integer getPetitioner_adjustNum() {
		return petitioner_adjustNum;
	}

	public void setPetitioner_adjustNum(Integer petitioner_adjustNum) {
		this.petitioner_adjustNum = petitioner_adjustNum;
	}

	public Integer getLeaveBillNum() {
		return LeaveBillNum;
	}

	public void setLeaveBillNum(Integer leaveBillNum) {
		LeaveBillNum = leaveBillNum;
	}

	public Integer getTotal_course() {
		return total_course;
	}

	public void setTotal_course(Integer total_course) {
		this.total_course = total_course;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}

	@Override
	public String toString() {
		return "Report [id=" + id + ", school_id=" + school_id + ", teacher_id=" + teacher_id + ", normalNum="
				+ normalNum + ", substituteNum=" + substituteNum + ", petitioner_substituteNum="
				+ petitioner_substituteNum + ", adjustNum=" + adjustNum + ", petitioner_adjustNum="
				+ petitioner_adjustNum + ", LeaveBillNum=" + LeaveBillNum + ", total_course=" + total_course + ", map="
				+ map + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((LeaveBillNum == null) ? 0 : LeaveBillNum.hashCode());
		result = prime * result + ((adjustNum == null) ? 0 : adjustNum.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((map == null) ? 0 : map.hashCode());
		result = prime * result + ((normalNum == null) ? 0 : normalNum.hashCode());
		result = prime * result + ((petitioner_adjustNum == null) ? 0 : petitioner_adjustNum.hashCode());
		result = prime * result + ((petitioner_substituteNum == null) ? 0 : petitioner_substituteNum.hashCode());
		result = prime * result + ((school_id == null) ? 0 : school_id.hashCode());
		result = prime * result + ((substituteNum == null) ? 0 : substituteNum.hashCode());
		result = prime * result + ((teacher_id == null) ? 0 : teacher_id.hashCode());
		result = prime * result + ((total_course == null) ? 0 : total_course.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Report other = (Report) obj;
		if (LeaveBillNum == null) {
			if (other.LeaveBillNum != null)
				return false;
		} else if (!LeaveBillNum.equals(other.LeaveBillNum))
			return false;
		if (adjustNum == null) {
			if (other.adjustNum != null)
				return false;
		} else if (!adjustNum.equals(other.adjustNum))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (map == null) {
			if (other.map != null)
				return false;
		} else if (!map.equals(other.map))
			return false;
		if (normalNum == null) {
			if (other.normalNum != null)
				return false;
		} else if (!normalNum.equals(other.normalNum))
			return false;
		if (petitioner_adjustNum == null) {
			if (other.petitioner_adjustNum != null)
				return false;
		} else if (!petitioner_adjustNum.equals(other.petitioner_adjustNum))
			return false;
		if (petitioner_substituteNum == null) {
			if (other.petitioner_substituteNum != null)
				return false;
		} else if (!petitioner_substituteNum.equals(other.petitioner_substituteNum))
			return false;
		if (school_id == null) {
			if (other.school_id != null)
				return false;
		} else if (!school_id.equals(other.school_id))
			return false;
		if (substituteNum == null) {
			if (other.substituteNum != null)
				return false;
		} else if (!substituteNum.equals(other.substituteNum))
			return false;
		if (teacher_id == null) {
			if (other.teacher_id != null)
				return false;
		} else if (!teacher_id.equals(other.teacher_id))
			return false;
		if (total_course == null) {
			if (other.total_course != null)
				return false;
		} else if (!total_course.equals(other.total_course))
			return false;
		return true;
	}

}
